<template>
  <el-dialog title="部门负责人" :close-on-click-modal="false" :before-close="Close" :visible.sync="ishmangg" width="30%">
    <el-form :model="fData" label-width="80px">
      <el-form-item label="审批意见">
        <el-radio-group v-model="fData.radio">
          <el-radio :label="1">同意</el-radio>
          <el-radio :label="2">不同意</el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="备注">
        <el-input
          v-model="fData.txt"
          type="textarea"
          :autosize="{ minRows: 2, maxRows: 4}"
          placeholder="请输入内容"
        >
        </el-input>
      </el-form-item>
      <el-form-item>
        <el-button size="small" type="success" @click="outmanage">提交</el-button>
        <el-button size="small" type="danger" @click="Close">关闭</el-button>
      </el-form-item>
    </el-form>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      ishmangg: true,
      fData: {
        date: '',
        txt: '',
        radio: 1
      },
    }
  },
  methods: {
    
    handlabel(radio) {
      console.log(radio)
    },
    openmagge() {
      this.ishmangg = true
    },
    outmanage() {
      this.ishmangg = false
    },
    Close() {
      if (this.ishmangg) {
        this.$confirm('你确定要离吗？')
          .then(_ => {
            this.ishmangg = false
          })
          .catch(_ => {})
      }
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
